package com.codeplay.domain.entity;

import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Entity
@Table(name = "child_users")
@EqualsAndHashCode(callSuper = true)
public class ChildUser extends BaseUser {
    private String nickname;
    private String avatar;
    private Integer age;
    private String grade; // 年级
    private String interests; // JSON格式存储兴趣标签
    private Integer level; // 用户等级
    private Integer experience; // 经验值
    private Integer coins; // 虚拟币
    private String achievements; // JSON格式存储成就
    private String learningPath; // JSON格式存储学习路径
    private Long parentId; // 关联的家长ID
    private String deviceId; // 设备ID
    private String lastLoginIp; // 最后登录IP
    private String lastLoginDevice; // 最后登录设备信息
} 